rem
rem You need nunit in your PATH to run the tests
rem
@echo off
set FTPDLL="test-edtftpnet-1.2.2.dll"
copy /Y ..\bin\*edtftpnet*.dll .
copy /Y %FTPDLL% data\test.dll
copy /Y conf\test.config.passive %FTPDLL%.config
copy /Y %FTPDLL%.config data\test1.txt
nunit-console %FTPDLL% /exclude=edtFTPnetVMS,edtFTPnet-active
rem
rem 120 second pause to allow earlier TIME_WAITs to expire
rem
ping -n 120 localhost>NUL
copy /Y conf\test.config.active %FTPDLL%.config
copy /Y conf\%FTPDLL%.config data\test1.txt
nunit-console %FTPDLL% /exclude=edtFTPnetVMS
rem
rem 30 second pause to allow earlier TIME_WAITs to expire
rem
ping -n 30 localhost>NUL
copy /Y conf\test.config.vms.active %FTPDLL%.config
nunit-console %FTPDLL% /include=edtFTPnetVMS
copy /Y conf\test.config.vms.passive %FTPDLL%.config
nunit-console %FTPDLL% /include=edtFTPnetVMS
del /F *edtftpnet*.dll
del /F data\test.dll
del /F data\test1.txt
del /F %FTPDLL%.config
@echo on
